//
//  NSString+DecimalNumber.h
//  FlashFishRec
//
//  Created by LWF on 2018/3/15.
//  Copyright © 2018年 zhangcong. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (DecimalNumber)

#pragma mark - 字符串数字比较  （字符串转浮点有精度问题，不能直接比较）
/**    真实字符串 eg: 8.3451 显示出来就是8.3451  8显示出来就是8     */
- (NSString *)realNumString;
- (BOOL)isBiggerThanNumber:(NSString *)numStr;
- (BOOL)isSmallerThanNumber:(NSString *)numStr;
- (BOOL)isEqualToNumber:(NSString *)numStr;

- (BOOL)isBiggerOrEqualToNumber:(NSString *)numStr;
- (BOOL)isSmallerOrEqualToNumber:(NSString *)numStr;



#pragma mark - double <--> NSString
/**    此方法把double －－－> NSString     */
- (NSString *)doubleToString:(double)doubleValue;
/**    字符串转化成double类型     */
- (double)stringToDouble;



@end
